package com.woniuxy.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 属性
 * </p>
 *
 * @author zcx, ftl, gr, rhs
 * @since 2022-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)

public class SaveGoodsPropParam implements Serializable {

    @ApiModelProperty(value = "属性组编号")
    @NotNull(message = "属性组编号不能为空")
    private Integer goodsPropgroupId;


    @ApiModelProperty(value = "属性名称")
    @NotBlank(message = "属性名称不能为空")
    private String goodsPropName;

    @ApiModelProperty(value = "属性类型  1唯一属性  2单选属性   3复选属性")
    @NotNull(message = "属性类型不能为空")
    private Integer goodsPropClass;


    @ApiModelProperty(value = "可选值列表")
    @NotEmpty(message = "请选择仓库")
    private String[] select;


}
